package com.huli.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huli.dao.PropertyCompanyMapper;
import com.huli.domain.PropertyCompany;
import com.huli.dto.OrdersInfoDto;
import com.huli.dto.PropertyCompanyDto;
import com.huli.param.AppealParam;
import com.huli.service.PropertyCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PropertyCompanyServiceImpl extends ServiceImpl<PropertyCompanyMapper,PropertyCompany> implements PropertyCompanyService {
    @Autowired
    PropertyCompanyMapper propertyCompanyMapper;

    @Override
    public List<PropertyCompanyDto> selectAllPropertyPhone() {
        return propertyCompanyMapper.selectAllPropertyPhone();
    }

    @Override
    public List<OrdersInfoDto> selectCarportOrdersInfo(int garageId) {
        return  propertyCompanyMapper.selectCarportOrdersInfo( garageId);
    }

    @Override
    public void createAppeal(AppealParam appealParam) {
        propertyCompanyMapper.createAppeal(appealParam);
    }
}
